package com.wkh.cli.pattern;

/**
 * @author wkh
 * 接收者
 */
public class Device {
    private String name;

    public Device(String name) {
        this.name = name;
    }

    public void turnOn() {
        System.out.println(name + "打开电视");
    }

    public void turnOff() {
        System.out.println(name + "关闭电视");
    }
}
